<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
// [js] 你对new操作符的理解是什么？手动实现一个new方法
function shuffle(arr) {
 return arr.sort(() => Math.random() - 0.5);
}
var arr1= [1,2,3,4,5]
console.log(shuffle(arr1));
  </script>
  
</body>
</html>